<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Spec extends Model
{
    protected $table = 'product_specs';

    public $primaryKey = 'spec_id';

    //规格值
    public function values()
    {
        return $this->hasMany(SpecValue::class, 'spec_id', 'spec_id');
    }
}
